package com.mocoop.entity;

import java.util.List;

import com.google.gson.Gson;


public class AjaxInfo {
	public static class FileProgress{
		private String progressID;
		private boolean isOnlyThumbnail;
		private float originTotalProgress = 1.0f;
		private float originCurrentProgress = 0.0f;
		private float thumbnailTotalProgress = 1.0f;
		private float thumbnailCurrentProgress = 0.0f;

		public String getProgressID() {
			return progressID;
		}

		public void setProgressID(String progressID) {
			this.progressID = progressID;
		}

		public boolean isOnlyThumbnail() {
			return isOnlyThumbnail;
		}

		public void setOnlyThumbnail(boolean isOnlyThumbnail) {
			this.isOnlyThumbnail = isOnlyThumbnail;
		}

		public float getOriginTotalProgress() {
			return originTotalProgress;
		}

		public void setOriginTotalProgress(float originTotalProgress) {
			this.originTotalProgress = originTotalProgress;
		}

		public float getOriginCurrentProgress() {
			return originCurrentProgress;
		}

		public void setOriginCurrentProgress(int originCurrentProgress) {
			this.originCurrentProgress = originCurrentProgress;
		}

		public float getThumbnailTotalProgress() {
			return thumbnailTotalProgress;
		}

		public void setThumbnailTotalProgress(float thumbnailTotalProgress) {
			this.thumbnailTotalProgress = thumbnailTotalProgress;
		}

		public float getThumbnailCurrentProgress() {
			return thumbnailCurrentProgress;
		}

		public void setThumbnailCurrentProgress(int thumbnailCurrentProgress) {
			this.thumbnailCurrentProgress = thumbnailCurrentProgress;
		}

		@Override
		public String toString() {
			return new Gson().toJson(this);
		}
		
		

	}	
	
	public static class UploadAttachmentFilesInfo{
			private String originalFileKey;
			private String originalFilePath;
			private String thumbnailFileKey;
			private String thumbnailFilePath;
			private FileProgress fileProgress;
			
			public FileProgress getFileProgress() {
				return fileProgress;
			}
			public void setFileProgress(FileProgress fileProgress) {
				this.fileProgress = fileProgress;
			}
			public String getOriginalFileKey() {
				return originalFileKey;
			}
			public void setOriginalFileKey(String originalFileKey) {
				this.originalFileKey = originalFileKey;
			}
			public String getOriginalFilePath() {
				return originalFilePath;
			}
			public void setOriginalFilePath(String originalFilePath) {
				this.originalFilePath = originalFilePath;
			}
			public String getThumbnailFileKey() {
				return thumbnailFileKey;
			}
			public void setThumbnailFileKey(String thumbnailFileKey) {
				this.thumbnailFileKey = thumbnailFileKey;
			}
			public String getThumbnailFilePath() {
				return thumbnailFilePath;
			}
			public void setThumbnailFilePath(String thumbnailFilePath) {
				this.thumbnailFilePath = thumbnailFilePath;
			}
			
			@Override
			public String toString() {
				// TODO Auto-generated method stub
				return new Gson().toJson(this);
			}
		} 
	    public static class SQLOperation{
	        private String SQLOfAjaxStarted;
	        private String SQLOfAjaxCompleted;
	        private String SQLOfAjaxSuccess;
	        private String SQLOfAjaxException;
	        
	        
			public String getSQLOfAjaxException() {
				return SQLOfAjaxException;
			}
			public void setSQLOfAjaxException(String sQLOfAjaxException) {
				SQLOfAjaxException = sQLOfAjaxException;
			}
			public String getSQLOfAjaxStarted() {
				return SQLOfAjaxStarted;
			}
			public void setSQLOfAjaxStarted(String sQLOfAjaxStarted) {
				SQLOfAjaxStarted = sQLOfAjaxStarted;
			}
			public String getSQLOfAjaxCompleted() {
				return SQLOfAjaxCompleted;
			}
			public void setSQLOfAjaxCompleted(String sQLOfAjaxCompleted) {
				SQLOfAjaxCompleted = sQLOfAjaxCompleted;
			}
			
			public String getSQLOfAjaxSuccess() {
				return SQLOfAjaxSuccess;
			}
			public void setSQLOfAjaxSuccess(String sQLOfAjaxSuccess) {
				SQLOfAjaxSuccess = sQLOfAjaxSuccess;
			}
			@Override
			public String toString() {
				// TODO Auto-generated method stub
				return new Gson().toJson(this);
			}
	        
	    } 
	    
		private Integer id;
         private String url;
         private String method;
         private String requestData;
         private String responseData;

         private List<UploadAttachmentFilesInfo> uploadAttachmentFilesInfo;
         private SQLOperation sqlOperation;
         private String noticePages;
         private String matchIDs;
         
         private String extra;
         
         private String errorMessage;
         private String transferState;

         private long endTime;
         private long beginTime;
         
         
         
		public String getMatchIDs() {
			return matchIDs;
		}
		public void setMatchIDs(String matchIDs) {
			this.matchIDs = matchIDs;
		}
		public List<UploadAttachmentFilesInfo> getUploadAttachmentFilesInfo() {
			return uploadAttachmentFilesInfo;
		}
		public void setUploadAttachmentFilesInfo(
				List<UploadAttachmentFilesInfo> uploadAttachmentFilesInfo) {
			this.uploadAttachmentFilesInfo = uploadAttachmentFilesInfo;
		}
		public SQLOperation getSqlOperation() {
			return sqlOperation;
		}
		public void setSqlOperation(SQLOperation sqlOperation) {
			this.sqlOperation = sqlOperation;
		}
		
		public String getNoticePages() {
			return noticePages;
		}
		public void setNoticePages(String noticePages) {
			this.noticePages = noticePages;
		}
		public Integer getId() {
			return id;
		}
		public void setId(Integer id) {
			this.id = id;
		}
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}
		public String getMethod() {
			return method;
		}
		public void setMethod(String method) {
			this.method = method;
		}
		public String getRequestData() {
			return requestData;
		}
		public void setRequestData(String requestData) {
			this.requestData = requestData;
		}
		

		public String getExtra() {
			return extra;
		}
		public void setExtra(String extra) {
			this.extra = extra;
		}
		
		public String getErrorMessage() {
			return errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public String getResponseData() {
			return responseData;
		}
		public void setResponseData(String responseData) {
			this.responseData = responseData;
		}
	
		public String getTransferState() {
			return transferState;
		}
		public void setTransferState(String transferState) {
			this.transferState = transferState;
		}
		public long getEndTime() {
			return endTime;
		}
		public void setEndTime(long endTime) {
			this.endTime = endTime;
		}
		public long getBeginTime() {
			return beginTime;
		}
		public void setBeginTime(long beginTime) {
			this.beginTime = beginTime;
		}
         
         
}
